/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* 导航栏 */
.navbar {
    background: #333;
    padding: 1rem;
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.navbar a:hover {
    background: #555;
    border-radius: 4px;
}

/* 公共容器样式 */
.login-container,
.register-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    margin: 2rem auto;
}

.link-text {
    text-align: center;
    margin-top: 1rem;
}

.link-text a {
    color: #4a90e2;
    text-decoration: none;
}

.link-text a:hover {
    text-decoration: underline;
}

/* 轮播图 */
.carousel {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fade 1s;
}

.slide img {
    width: 100%;
    height: auto;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}